/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package smaragJava;

import smaragJava.Connector;

/**
 *
 * @author northpole
 */
public class DAOFactory implements DAOFactoryInterface{

    Connector con;

    public DAOFactory(){
        Connector con = new Connector();
    }

    public UserDAO createUserDAO(){
        UserDAO userd = new UserDAO(con);
        return userd;
    }

    public PostDAO createPostDAO(){
        PostDAO postd = new PostDAO(con);
        return postd;
    }
    
    public SpeciesDAO createSpeciesDAO(){
    	SpeciesDAO speciesd = new SpeciesDAO(con);
    	return speciesd;
    }

}
